@popover-padding-lr: 16px;

.c-tag-select {
  line-height: 1 !important;
  .anticon-plus-circle {
    vertical-align: 8px;
  }

  .c-tag {
    margin: 2px 14px 2px 4px;
  }

  .to-add-new-tag {
    line-height: 32px !important;
    cursor: pointer;
    color: #0b6fd6;
  }
}

.c-tag-select-popover {
  width: 250px;

  .ant-popover-title {
    padding: @popover-padding-lr / 2 @popover-padding-lr;
  }

  .ant-popover-inner-content {
    padding: 0;
  }

  .select-title {
    display: flex;
    align-items: center;

    input {
      padding: 5px 0;
      border: none;
      outline: none;
      box-shadow: none !important;
    }

    .anticon-plus-circle {
      color: #1890ff;
    }
  }

  .select-content {
    max-height: 200px;
    overflow-y: auto;

    .item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 0 !important;
      padding: 0 @popover-padding-lr;
      height: 40px;
      cursor: pointer;

      .icon {
        flex: 0 0 8px;
        display: inline-block;
        margin-right: 8px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
      }

      .anticon {
        flex: 0;

        svg {
          width: 16px;
          height: 16px;
        }

        &:hover {
          color: #1890ff;
        }
      }

      .anticon-edit {
        display: none;
      }

      .anticon-check {
        margin-left: 8px;
      }

      .value {
        width: 100%;
        word-break: break-all;
      }

      &:hover {
        background: #f5f5f5;

        .anticon-edit {
          display: inline-block;
        }
      }
    }
  }

  .new-title,
  .edit-title,
  .delete-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .new-content,
  .edit-content,
  .delete-content,
  .select-content-new {
    padding: @popover-padding-lr;

    input,
    .c-color-blocks {
      margin: 12px 0;
    }
  }

  .new-content,
  .select-content-new,
  .delete-content {
    button {
      width: 100%;
    }
  }

  .select-content-new {
    padding-top: 5px;
  }

  .edit-content {
    .operations {
      display: flex;
      justify-content: space-between;

      button {
        width: 45%;
      }
    }
  }

  .ant-input {
    margin-bottom: 0 !important;
  }

  .anticon {
    cursor: pointer;
  }

  .validate-error {
    margin-top: 1px;
    margin-bottom: 0px;
    color: #f5222d;
  }
}
